package com.guxingke.gblog.dao.impl;

import org.apache.ibatis.session.SqlSession;

import com.guxingke.gblog.util.MybatisUtil;

public class BaseDao {
	protected SqlSession session = null;

	protected void begin() {
		session = MybatisUtil.getSqlSessionFactory().openSession();
	}

	protected void end() {
		session.commit();
		session.close();
	}
}
